package cn.xuqiudong.work.baidu.model;

import java.lang.reflect.Field;

/**
 * 描述:
 *   待翻译VO元数据字段信息
 * @author Vic.xu
 * @since 2024-12-25 17:09
 */
public class FieldMeta {

    private transient  Field field;
    // 字段名
    private String fieldName;
    // 字段值
    private Object fieldValue;
    // 字段是否为空
    private boolean isEmpty;

    //通过索引的方式 去定位字段，省却字段被翻译
    private Object index;

    /**当前字段的分隔符*/
    private String separator;

    public FieldMeta(Field field, String fieldName, Object fieldValue, boolean isEmpty, String separator,Object index) {
        this.field = field;
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
        this.isEmpty = isEmpty;
        this.separator = separator;
        this.index = index;
    }

    public Object getIndex() {
        return index;
    }

    public void setIndex(Object index) {
        this.index = index;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Object getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(Object fieldValue) {
        this.fieldValue = fieldValue;
    }

    public boolean isEmpty() {
        return isEmpty;
    }

    public void setEmpty(boolean empty) {
        isEmpty = empty;
    }

    public String getSeparator() {
        return separator;
    }

    public void setSeparator(String separator) {
        this.separator = separator;
    }



}
